package com.heima.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.wemedia.pojos.WmNewsMaterial;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 自媒体图文引用素材信息表 Mapper 接口
 * </p>
 *
 * @author QLJ
 * @since 2022-09-02
 */
public interface WmNewsMaterialMapper extends BaseMapper<WmNewsMaterial> {

    /**
     * 素材与文章绑定
     */
    void saveNewsMaterials(@Param("newsIds") List<Integer> newsIds, @Param("materialId") Integer materialId, @Param("type") Integer type);
}
